import styles from './index.less';

import LegendUpdater from '@/plugins/echarts/legend-updater';
import Bar from '@/components/charts/Bar';
import Line from '@/components/charts/Line/index';

export default function IndexPage() {

  // 初始化
  const echartsLegendUpdater = LegendUpdater(3000)
  // 启动
  echartsLegendUpdater.start()

  return (
    <div>
      <div className={styles.flex}>
        <Line legendUpdater={echartsLegendUpdater}></Line>
        <Bar legendUpdater={echartsLegendUpdater}></Bar>
      </div>
    </div>
  );
}
